import { reactive } from 'vue'
import { defineStore } from 'pinia'
import type { Order } from '@/core/interfaces/order'

export const useOrderStore = defineStore('Order', () => {
  const currentOrderData = reactive<Partial<Order>>({})

  function setCurrentOrderData(order: Order) {
    Object.assign(currentOrderData, {}, order)
  }

  return {
    currentOrderData,
    setCurrentOrderData
  }
})
